package cn.bon.common.adapter;

import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * @author: dronff
 * @description:
 * @CreateTime: 2023/12/9 11:40
 **/
public interface JsonSerializerAdapter {

    byte[] readObjectAsJsonBytes(Object o) throws JsonProcessingException;
    String readObjectAsJson(Object o) throws JsonProcessingException;
    <T> T readJsonAsObject(String jsonStr,Class<T> clazz) throws JsonProcessingException;
}
